home *** CD-ROM | disk | FTP | other *** search
-
- TCGETPGRP(3) UNIX Programmer's Manual TCGETPGRP(3)
-
- NNAAMMEE
- ttccggeettppggrrpp - get foreground process group ID
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ssyyss//ttyyppeess..hh>>
- ##iinncclluuddee <<uunniissttdd..hh>>
-
- _p_i_d___t
- ttccggeettppggrrpp(_i_n_t _f_d)
-
- DDEESSCCRRIIPPTTIIOONN
- The ttccggeettppggrrpp function returns the value of the process group ID of the
- foreground process group associated with the terminal device. If there
- is no foreground process group, ttccggeettppggrrpp returns an invalid process ID.
-
- EERRRROORRSS
- If an error occurs, ttccggeettppggrrpp returns -1 and the global variable _e_r_r_n_o is
- set to indicate the error, as follows:
-
- [EBADF] The _f_d argument is not a valid file descriptor.
-
- [ENOTTY] The calling process does not have a controlling terminal or
- the underlying terminal device represented by _f_d is not the
- controlling terminal.
-
- SSEEEE AALLSSOO
- setpgid(3), setsid(2), tcsetpgrp(3)
-
- SSTTAANNDDAARRDDSS
- The ttccggeettppggrrpp function is expected to be compliant with the IEEE
- Std1003.1-1988 (``POSIX'') specification.
-
- BSD Experimental June 15, 1998 1
-